import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
// 引入全局样式表
import './assets/css/global.css';
import axios from 'axios';
import './assets/fonts/iconfont.css';

// 引入富文本编辑器
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css' // import styles
import 'quill/dist/quill.snow.css' // for snow theme
import 'quill/dist/quill.bubble.css' // for bubble theme

// axios预处理拦截器
import axiosPretreatment from './plugins/axiosPretreatment.js';
// 引入第三方依赖用于展示树形结构的table表格
import TreeTable from 'vue-table-with-tree-grid'
Vue.component('tree-table', TreeTable);

// 引入axios相关配置插件
Vue.use(axiosPretreatment);

// 注册富文本编辑器
Vue.use(VueQuillEditor)

Vue.prototype.$axios = axios;
Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
